﻿@{
    Layout = null;    
}
<!DOCTYPE html>

<html>
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width" />
    <title>@ViewBag.Title</title>
    @Scripts.Render("~/scripts/common")
    @Html.Using("styles/login.css")
    <!--[if ie]><meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible" /><![endif]-->
    <!--[if lte IE 8]><script>(function(){var element = "header,section,article,nav,aside,hgroup,figure,figcaption,footer,mark".split( ',' ), l = element.length;while ( l > 0 ){l = l - 1; document.createElement( element[l] );}} )();</script><![endif]-->
</head>
<body>
    <div class="login">
        <form method="post">
            <div>
                <span class="label">@LRaw("User_UserName")</span>
                <input type="text" name="username" value="@ViewBag.UserName" class="txt" />
                @*<span class="desc"><a href="register.html">注册</a></span>*@
            </div>
            <div>
                <span class="label">@LRaw("User_Password")</span>
                <input type="password" name="password" class="txt" value="@ViewBag.Password" />
                @*<span class="desc"><a href="register.html">忘记密码？</a></span>*@
            </div>
            <div>
                <span class="label">@LRaw("ValidCode")</span>
                @Html.ValidCodeBox("ValidCode", Consts.Login, 70, 30, new { @class = "vc" })
            </div>
            <div>
                <span class="label"></span>
                <input id="AutoLogin" value="true" type="checkbox" checked="@ViewBag.AutoLogin" class="checkbox" name="AutoLogin" />
                <label for="AutoLogin">@LRaw("User_AutoLogin")</label>
            </div>
            <div class="submit">
                <button type="submit" onmouseout="this.className='';" onmouseover="this.className='active';"></button>
            </div>
        </form>
    </div>
    @if (ViewBag.Message != null) { 
        <script type="text/javascript">
            alert('@ViewBag.Message');
        </script>
    }
</body>
</html>